package com.imc.platform.base.pay.http.tuple;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Created by tanweiping on 2018/9/4.
 */
@Data
@XStreamAlias("xml")
@AllArgsConstructor
@NoArgsConstructor
public class PrePayDto {
    /*
    <xml>
   <return_code><![CDATA[SUCCESS]]></return_code>
   <return_msg><![CDATA[OK]]></return_msg>
   <appid><![CDATA[wx2421b1c4370ec43b]]></appid>
   <mch_id><![CDATA[10000100]]></mch_id>
   <nonce_str><![CDATA[IITRi8Iabbblz1Jc]]></nonce_str>
   <openid><![CDATA[oUpF8uMuAJO_M2pxb1Q9zNjWeS6o]]></openid>
   <sign><![CDATA[7921E432F65EB8ED0CE9755F0E86D72F]]></sign>
   <result_code><![CDATA[SUCCESS]]></result_code>
   <prepay_id><![CDATA[wx201411101639507cbf6ffd8b0779950874]]></prepay_id>
   <trade_type><![CDATA[JSAPI]]></trade_type>
</xml>
     */
    @XStreamAsAttribute
    private String return_code;
    @XStreamAsAttribute
    private String return_msg;
    @XStreamAsAttribute
    private String appid;
    @XStreamAsAttribute
    private String mch_id;
    @XStreamAsAttribute
    private String nonce_str;
    @XStreamAsAttribute
    private String openid;
    @XStreamAsAttribute
    private String sign;
    @XStreamAsAttribute
    private String result_code;
    @XStreamAsAttribute
    private String prepay_id;
    @XStreamAsAttribute
    private String trade_type;
}
